﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ComponentModel.DataAnnotations;

namespace FreeDAM.Domain.Entities
{
    public class Asset : EntityBase
    {
        [MaxLength(100)]
        public string MimeType { get; set; }
        [MaxLength(255)]
        public string Name { get; set; }
        public string FileName { get; set; }
        public string DirectoryLocation { get; set; }
        public string ServerRelativePath { get; set; }
        public bool Published { get; set; }

        public virtual List<Rendition> Renditions { get; set; }
        public virtual List<Tag> Tags { get; set; }

        public int RenditionGroupId { get; set; }
        public virtual RenditionGroup RenditionGroup { get; set; }
    }
}
